package L4;

import java.util.Scanner;



class Circle {
    public double radius;
    Circle(){}
    Circle(double d){
        radius = d;
    }
    public double getPerimeter(){
        return 2*Math.PI*radius;
    }
    public double getArea(){
        return Math.PI*radius*radius;
    }
}

class Cylinder extends Circle {
    private double height;
    Cylinder(double h){
        super(3);
        height = h;
    }
    public double getSurfaceArea(){
        return 2*getArea()+
                getPerimeter()*height;
    }
    public double getVol(){
        return getArea()*height;
    }
}

public class TestCircle {
    public static String narrowDown(Double d,int n){
        String s = d.toString();
        int dotIndex = s.indexOf('.');
        return s.substring(0,dotIndex+n);
    }
    public static void main(String[] args) {
        double h;
        double r;
        Scanner sc = new Scanner(System.in);
        r = sc.nextDouble();
        Circle circle = new Circle(r);
        r = sc.nextDouble();
        h = sc.nextDouble();
        sc.close();
        Cylinder cylinder = new Cylinder(h);
        cylinder.radius = r;
        System.out.printf(
            "Perimeter:%f%nArea:%f%nSurface area:%f%nVolume:%f%n",
            circle.getPerimeter(),
            circle.getArea(),
            cylinder.getSurfaceArea(),
            cylinder.getVol()
        );
    }
}
